package com.aididi.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Observable;

/**
 * @Auther: zx.xu
 * @Description:
 */
@Component
@FeignClient(name = "eureka-client",fallbackFactory = FeignFallbackFactory.class)
public interface ComsumerFeignService {

    @GetMapping("/hi")
    String getObjFromClient(@RequestParam(value = "name") String name);

}
